<template>
  <div id="Link">
    <x-header slot="header" style="width:100%;position:absolute;left:0;top:0;z-index:100;"
              :left-options="{showBack: true, backText: ''}" :right-options="{showMore: false}"
              @on-click-more="showMenus = true">{{title}}
    </x-header>
  </div>
</template>

<script>
  import {mapState} from 'vuex'
  import {XHeader, TransferDom, cookie} from 'vux'

  export default {
    directives: {
      TransferDom
    },
    components: {
      XHeader
    },
    computed: {
      ...mapState({
        showBack: state => state.vux.showBack,
        title: state => state.vux.title
      })
    },
    data () {
      return {

      }
    },
    methods: {

    }
  }
</script>
<style lang="less">
@hong:#cf0808;
@blue:#1babe3;
  #Link .vux-header-title {
    font-size: 18px;
  }
  #Link .menu {
    margin-right: 70px;
  }
  #Link .menu div {
    color: #000;
  }
  #Link .menu:before {
    right: -70px;
  }
  #Link .vux-header{
    background-color: @hong !important;
    .vux-header-title{
      color:#fff !important;
    }
    .vux-header-right a{
      color: #ffffff !important;
    }

  }
  .vux-header .vux-header-left .left-arrow:before{
      border:1px solid #ffffff !important;
      border-width:1px 0 0 1px !important;
  }
</style>
